<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<link rel="stylesheet" href="/Public/qwadmin/css/colorbox.css" />
<script src="/Public/qwadmin/js/chinazone.js"></script>
<style type="text/css">
html,body{ height: 100%; width: 100%; position: relative; font-size:14px;}
.city{ margin:20px 200px; }
.selectbox{ height:50px; width:500px;}
.selectbox select{ height:30px; width:120px; margin-right:10px; line-height:30px;}
</style>


<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>
 

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                      
                         <form class="form-horizontal">
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label  bolder blue" for="form-field-1"> 合作伙伴 </label>
                                <span class="col-sm-9 gray" >
                                       {$currentuser.outname}
                                </span>
                            </div>
                            
							<div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label  control-label bolder blue" for="form-field-1"> 所在区域 </label>
                                <div class="col-sm-9">
                                    {$currentuser.province}-{$currentuser.city}-{$currentuser.town} {$currentuser.address}
                                </div>
                                   
                            </div>
							
							<div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label control-label bolder blue" for="form-field-1"> 需求分类 </label>
                                <div  class="col-sm-9 ">
                                   {$currentuser.requirement}/ {$currentuser.demo}
                                </div>
                                   
                            </div>
							
                       
						

<div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label control-label bolder blue" for="form-field-1"> 联系人 </label>
                                <div id="selectbox1" class="col-sm-9 ">								
                                     {$currentuser.linkman}   {$currentuser.phone}
                                </div>
                                   
                            </div>
<div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label control-label bolder blue" for="form-field-1"> 总充值 </label>
                                <div id="selectbox1" class="col-sm-9 selectbox">
								
                                    <input type="text" name="user_tel" id="address" value="{$currentuser.acount}" class="rcol-xs-10 col-sm-9" readonly />
                                </div>
                                   
                            </div>
<div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label control-label bolder blue" for="form-field-1"> 已消费 </label>
                                <div id="selectbox1" class="col-sm-9 selectbox">
								
                                    <input type="text" name="qqcode" id="qqcode" value="{$currentuser.acount_used}" class="rcol-xs-10 col-sm-9" readonly />
                                </div>
                                   
                            </div>	

<div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label control-label bolder blue" for="form-field-1"> 剩余 </label>
                                <div id="selectbox1" class="col-sm-9 selectbox">
								
                                    <input type="text" name="qqcode" id="qqcode" value="{$currentuser.acount_remain}" class="rcol-xs-10 col-sm-9" readonly />
                                </div>
                                   
                            </div>									
                <div class="space-4"></div>
                            
                  
			    
						
                       <div class="space-4"></div>
					   <div class="space-4"><input name="id" value="{$currentmenu.id}" type="hidden"></div>
                            
                        </form>    
                       
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
				

				 
				 <div class="row ">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
						 <div class="row">
                              <a class="btn btn-info" href="{:U('bookrefresh',array('id'=>$currentuser[id]))}" title="是否刷新" menu="tip_menu" request_type="ajax" value="">刷新金额</a>
							  <a class="btn btn-info" href="{:U('bookadd',array('id'=>$currentuser[id]))}"  data-rel="colorbox" class="cboxElement">录入金额</a> 
                              
							  <a class="btn btn-info" href="{:U('index')}" value="">返回合作伙伴</a>
							  <a class="btn btn-info" href="{:U('revist',array('id'=>$currentuser[id]))}"  data-rel="colorbox" value="">回访记录</a>
							  <a class="btn btn-info" href="{:U('revistadd',array('id'=>$currentuser[id]))}"  data-rel="colorbox"  value="">添加回访</a>
                         </div>
                        <div class="space-4"></div>
     
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
	

                        <div class="row">
                            <form  class="form-horizontal" action="{:U('bookdel')}" name="myfromSubmit" method="post">
                                <table class="table table-striped table-bordered table-hover goodslist">
                                    <thead>
                                    <tr>
                                        <th class="center"><input class="check-all" type="checkbox" value=""></th>
                                   
                                        <th>类型</th>
                                        <th>金额</th>
                                       
                                        <th>时间</th>
                                        <th>状态</th>
                                        <th class="center">操作</th>
										 <th></th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <style>
                                        .grouptd {
                                            position: relative;
                                        }

                                        .group {
                                            display: inline-block;
                                            width: 100%;
                                        }

                                        .groupselect {
                                            position: absolute;
                                            top: 0;
                                            left: 0;
                                            width: 100%;
                                            height: 100%;
                                            border: 0;
                                        }
                                    </style>
				
					             <volist name="list" id="val">
                                 
								 <tr   <if condition="$val['type']!='chanrge'">class="bind_id_{$val['bind_id']}" style="display:none" <else/> class="charge_id"  bind_id="{$val['bind_id']}"  show='false'</if>  >
                                            <td class="center">
                                                <if condition="$val['type']=='chanrge'"> <input class="ids" type="checkbox" name="ids[]" value="{$val['id']}"></if>
                                            </td>
											 <if condition="$val['type']=='chanrge'">
                                            <td>  {$xiaofeilist[$val['type']]}</td>
											<else/>
											 <td>   {$xiaofeilist[$val['type']]}</td>
											</if>
                                            <td>{$val['acount']}</td>
											
                                            <td>{:date('Y-m-d',$val['creattime'])}</td>
                                            
                                            <td>{$statuslist[$val['isvalid']]} 
											<if condition="$val['uppic']">
											<a href="{$val['uppic']}" data-rel="colorbox" class="cboxElement"><span class="text">凭证</span></a>
						                    </if>
					               </td>
                                            <td class="center">
											 <if condition="$val['type']=='chanrge'">
											   <a class="btn btn-primary" href="{:U('bookadd',array('id'=>$currentuser[id],'bind_id'=>$val['id']))}" data-rel="colorbox" class="cboxElement">录入消费</a>
											   <a class="btn  btn-primary" href="{:U('orderadd',array('id'=>$currentuser[id],'bind_id'=>$val['id']))}" data-rel="colorbox" value="">绑定订单</a>&nbsp;
											 
											   
											 </if>
											 <if condition="$val['order_id']">
											   <a href="{:U('Order/detail',array('ref'=>$val['order_id']))}" data-rel="colorbox"  class="btn btn-info">查看</a>&nbsp;
											 </if>
                                                <a href="{:U('bcomfirm',array('id'=>$val['id']))}" menu="tip_menu" request_type="ajax" class="btn btn-info" title="确认本条消费信息">确认</a>&nbsp; <a href="{:U('bookdel',array('id'=>$val['id']))}" menu="tip_menu" request_type="ajax"  title="确认删除本条消费信息" class="btn btn-info">删除</a>&nbsp;
                                            
                                            </td><td></td>
                                        </tr>
                                    </volist>
					 
							 
                                    
                                    </tbody>
                                </table>
                            </form> <div class="space-4"></div>
                            <div class="cf col-xs-12">
                                <input id="submit" class="btn btn-info" type="button" value="删除">
                            </div>
							
                            {$page}
							
	                          <div class="space-4"></div>
                        </div>	
				
			 <!-- /section:settings.box -->
			 
			 
	

				
				 
				
            </div><!-- /.page-content -->
			
			
	
        </div>
		
		
		
    </div><!-- /.main-content -->


</div><!-- /.main-container -->
<script src="/Public/qwadmin/js/jquery.colorbox.js"></script>

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->

<script type="text/javascript">
    jQuery(function ($) {
      $('#exp_time').datepicker({
       
            dateFormat: 'yy-mm-dd',
              weekStart: 1,
            autoclose: true,
            todayBtn: 'linked',
     
            language: 'cn'
        });
		
		
		var colorbox_params = {
          rel: 'colorbox',
   reposition: false,
  scalePhotos: false,
    scrolling: false,
     previous: '<i class="ace-icon fa fa-arrow-left"></i>',
         next: '<i class="ace-icon fa fa-arrow-right"></i>',
        close: '&times;',
      current: '',
     maxWidth: '100%',
    maxHeight: '100%',
   onComplete: function(){
     $.colorbox.resize();
   }
}
 
$('[data-rel="colorbox"]').colorbox(colorbox_params);
$('#cboxLoadingGraphic').append("<i class='ace-icon fa fa-spinner orange'></i>");
    });
	
$('.charge_id').click(function(){
     bind_id=$(this).attr('bind_id');
	 show=$(this).attr('show')=='block'?'none':'';
	 
	 $(this).attr('show',(show=='')?'block':'none');
	 $('.bind_id_'+bind_id).each(function(){
	     console.log(show);
		 $(this).css('display',show);
	      })

  });	
</script>

</body>
</html>
